package com.think.admin.model.param;

import com.think.common.convert.Convert;
import com.think.common.validation.Create;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 角色资源
 * </p>
 *
 * @author: xwj
 * @data: 2019-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RoleResourceParam extends Convert {

    /**
     * 角色ID数组
     */
    @NotNull(groups = Create.class,message = "角色ID不能为空！")
    private String roleId;

    /**
     * 资源ID数组
     */
    private List<String> resourceIdList;
}
